package com.waypolice.manager.service.impl;
import com.waypolice.manager.service.ArchivesKeepingStatisticService;
import com.waypolice.mapper.handwriting.CmsArchiveKeepingMapperSon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class ArchivesKeepingStatisticServiceImpl implements ArchivesKeepingStatisticService {
    @Autowired
    private CmsArchiveKeepingMapperSon cmsArchiveKeepingMapperSon;


    @Override
    public List<Map> keepingStatistic(String type,Date date1,Date date2,String sign,Integer archSign) {
        return cmsArchiveKeepingMapperSon.selectCountByDateAndType( type,date1,date2,sign,archSign);
    }

    @Override
    public List<Map> selectTypes() {
        return cmsArchiveKeepingMapperSon.selectTypes();

    }
}